projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
977b0e4
)
* charset.c (encode_char): Remove unnecessary difference from trunk.
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 9 Oct 2011 17:47:58 +0000
(10:47 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 9 Oct 2011 17:47:58 +0000
(10:47 -0700)
src/charset.c
patch
|
blob
|
history
diff --git
a/src/charset.c
b/src/charset.c
index 299655b2cf8c660ed5fe92977f12b2bbf77222ae..6aa6fe46b546123f84e7ebd841718de766f75cd0 100644
(file)
--- a/
src/charset.c
+++ b/
src/charset.c
@@
-1832,8
+1832,9
@@
encode_char (struct charset *charset, int c)
}
else /* method == CHARSET_METHOD_OFFSET */
{
- code = c - CHARSET_CODE_OFFSET (charset);
- code = INDEX_TO_CODE_POINT (charset, code);
+ unsigned code_index = c - CHARSET_CODE_OFFSET (charset);
+
+ code = INDEX_TO_CODE_POINT (charset, code_index);
}
return code;